home *** CD-ROM | disk | FTP | other *** search
/ Nejlepší hry / Nejlepsi hry.iso / hry / 6zenichu / 6+1 install_txt.exe / 6 zenichu a 1 navic.exe / scripts / DefineButton2_4687 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2003-11-28  |  817 b   |  36 lines

  1. on(release){
  2.    if(0 < _root.draglej)
  3.    {
  4.       if(_root.draglej == 48)
  5.       {
  6.          _root.itembar_remove(48);
  7.          _root.hideall();
  8.       }
  9.       if(eval("_root.d20_i" add _root.draglej add "_100") == undefined)
  10.       {
  11.          _root.d_hajnej.l = "d20_iundef_100";
  12.          _root.d_hajnej.i = "go";
  13.       }
  14.       else
  15.       {
  16.          _root.d_hajnej.l = "d20_i" add _root.draglej add "_100";
  17.          _root.d_hajnej.i = "go";
  18.       }
  19.    }
  20.    else if(_root.st_jasmina == 2)
  21.    {
  22.       _root.st_jasmina = 3;
  23.       _root.st_karmina = 1;
  24.       _root.d_hajnej.l = "d20_jasmina_100";
  25.       _root.d_hajnej.i = "go";
  26.    }
  27.    else
  28.    {
  29.       _root.d_hajnej.l = "d20_0a_100";
  30.       _root.d_hajnej.i = "go";
  31.    }
  32.    _root.stopdragall();
  33.    _root.items_hide();
  34.    _root.hideall();
  35. }
  36.